package com.mwm.loyal.service.impl;

import com.mwm.loyal.bean.FeedBean;
import com.mwm.loyal.dao.FeedDao;
import com.mwm.loyal.service.FeedService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("feedService")
public class FeedServiceImpl implements FeedService {
    @Resource(name = "feedDao")
    private FeedDao feedDao;

    @Override
    public int feed(FeedBean feedBean) {
        return feedDao.feed(feedBean);
    }

    @Override
    public int deleteFeed(FeedBean feedBean) {
        return feedDao.deleteFeed(feedBean);
    }

    @Override
    public List<FeedBean> queryFeed(String username) {
        return feedDao.queryFeed(username);
    }
}
